package pervasivePositioning.androidPositioner;

import android.location.Location;
import pervasivePositioning.pos.Coordinate;

public class Report
{
	public Coordinate position;
	public Coordinate acceleration;
	public long time;
	public String strategyName;
	public String configValue;
	
	public Report(Coordinate position, long time, String strategyName, String configValue)
	{
		this.position = position;
		this.time = time;
		this.strategyName = strategyName;
		this.configValue = configValue;
	}

	public Report(Location loc, float[] acc, String config) {
		position = new Coordinate(loc.getLatitude(), loc.getLongitude(), loc.getAltitude());
		time = loc.getTime();
		
		if(acc != null)
			acceleration = new Coordinate(acc[0], acc[1], acc[2]);
		else
			acceleration = new Coordinate(0,0,0);
		strategyName = "";
		configValue = config;
	}

	public Report(long t, Coordinate l, Coordinate acc, String config) {
		time = t;
		position = l;
		acceleration = acc;
		strategyName = "";
		configValue = config;
	}
}